// import Home from '../pages/Home'
import Cart from '../pages/Cart'
import Menu from '../pages/Menu'
import Mine from '../pages/Mine'
import Detail from '../pages/Detail'
import Soul from '../pages/Soul'
import Tarbar from '../components/Tarbar'

const Login =()=>import('../pages/Login')
const Home =()=>import('../pages/Home')
const routes=[{
    path:'/',
    redirect:'/home'
},{
    path:'/home',
    component:Home,
    isNav:true,
    text:'首页',
    icon:'&#xe6cb;'
},{
    path:'/menu',
    component:Menu,
    isNav:true,
    text:'分类',
    icon:'&#xe64e;',
    redirect: '/menu/badroom',
    children:[{
        path:':detail',
        component:Detail,
        props:true
           
    }]
},{
    path:'/cart',
    component:Cart,
    isNav:true,
    isBadge:true,
    meta:{
        isAuthRequired:true
    },
    text:'购物车',
    icon:'&#xe899;'
},{
    path:'/mine',
    component:Mine,
    isNav:true,
    text:'我的',
    icon:'&#xe608;'
},{
    path:'/soul/:id',
    name:'soul',
    meta:{
        hell:false
    },
    components:{
        default:Soul,
        tarbar:Tarbar
    }
  
},{
    path:'/login',
    component:Login
}]

export default routes

